<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>underline</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.7 -->
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/font-awesome.min.css">

    <link rel="stylesheet" href="__PUBLIC__/Admin/css/AdminLTE.min.css">

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <style>
        .re-header-img{
            height:50px;
            padding: 5px;
        }
    </style>
</head>
<body>
<div class="wrapper">
    <?php if(isset($message)) { ?>
    <div class="error-page">
        <div class="headline text-green" style="font-size: 50px">Success</div>
        <div class="error-content" style="padding-top: 30px">
            <h3>
                <i class="fa fa-check text-green"></i>
                <?php echo($error); ?>
            </h3>
            <p>
                页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b>
            </p>

        </div>
        <!-- /.error-content -->
    </div>
    <?php }else{ ?>
    <div class="error-page">
        <div class="headline text-yellow" style="font-size: 50px">Warning</div>
        <div class="error-content" style="padding-top: 30px">
            <h3>
                <i class="fa fa-warning text-yellow"></i>
                <?php echo($error); ?>
            </h3>
            <p>
                页面自动 <a id="href" href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait"><?php echo($waitSecond); ?></b>
            </p>

        </div>
        <!-- /.error-content -->
    </div>
    <?php }?>

</div>
<!-- ./wrapper -->
<!-- jQuery 3 -->
<script src="__PUBLIC__/Admin/js/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="__PUBLIC__/Admin/js/bootstrap.min.js"></script>
<script type="text/javascript">
    (function(){
        var wait = document.getElementById('wait'),href = document.getElementById('href').href;
        var interval = setInterval(function(){
            var time = --wait.innerHTML;
            if(time <= 0) {
                location.href = href;
                clearInterval(interval);
            };
        }, 1000);
    })();
</script>
</body>
</html>

